﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ListadoAlumno.Models
{
    public class Curso
    {
        public List<Alumno> listaCurso = new List<Alumno>();



       
        public double promedio()
        {
            double prom = 0.0;
            double aux = 0.0;

            foreach (var item in listaCurso)
            {
                aux += item.nota;    
            }
            prom = aux / listaCurso.Count;
            return prom;
        }
    }
}